<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>运城市安全生产隐患排查治理信息系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath%>/css/style.css" rel="stylesheet" type="text/css"/>
	<script src="<%=basePath%>/js/js.js" type="text/javascript"></script>
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
	<script type="text/javascript">
		$(function(){
			$("#perType").change(function() {
				var typeVal =  $(this).val();
				
				if(typeVal == 5 || typeVal == 6) {
					if(typeVal == 5) {
						$("#perDesc").html("特种作业种类名称 : ");
					} else if(typeVal == 6) {
						$("#perDesc").html("具体岗位名称 :  ");
					}
					$("#perPos").css("display", "block");
					
				} else {
					$("#perPos").css("display", "none");
				}
			});
		});
	</script>
  </head>
  
 <body>
<div id="allbody">
	<div class="head">
		<iframe src="<%=basePath%>/head.jsp" width="1160" height="218" scrolling="no" frameborder="0" ></iframe>
	</div>
	<div class="con">
		<div class="left">
			<div class="left_info">
				<iframe src="<%=basePath%>/left_info.jsp" width="244" height="250" id="iframeleft_top"  onLoad="iFrameHeight()"  scrolling="no" frameborder="0" ></iframe>
			</div>
			<div class="left_link">
				<iframe src="<%=basePath%>/corp_left.jsp" width="244" height="200" id="iframeleft_link"  onLoad="iFrameHeight2()" scrolling="no" frameborder="0" ></iframe>
			</div>
		</div>
		<div class="right">
			<div class="right_map"><a href="<%=basePath%>/corp/index.action">首页</a> &gt; <span><a href="<%=basePath%>/enterprise/corp_lookInfo.action">企业基本信息</a></span> &gt; <span>人员信息添加</span></div>
			<div class="right_list">
				<table border="0" cellpadding="0" cellspacing="0" align="center" class="corplist">
					<tr class="tit">
						<th style="text-align:right;padding-right:10px;"> <li><a href="<%=basePath%>/enterprise/corp_perList.action">返回</a></li></th>
					</tr>
				</table>
				<form name="perform" action="<%=basePath%>/enterprise/corp_addPer.action" method="post">
					<table border="0" cellpadding="0" cellspacing="0" align="center" class="infolist">
						<tr>
							<td class="info_tit" width="120" style="border-top:none">姓  名：</td>
							<td>
								<input name="perName" type="text" class="info_input" value="" id="bit1"/><span class="note4">*</span>
							</td>
						</tr>
						<tr>
							<td class="info_tit">类  型：</td>
							<td><s:select list="#{'4':'安全管理人员','5':'特种作业人员','6':'关键装置重点部位人员'}" name="perType" id="perType" headerKey="" headerValue="请选择" value="per.perDegree" theme="simple" cssStyle="width:155px;"></s:select> </td>
						</tr>
						<tr id="perPos" style="display:none;">
							<td id="perDesc" class="info_tit"></td>
							<td> <input type="text" name="position" id="position" /></td>
						</tr>
						<tr>
							<td class="info_tit">性  别：</td>
							<td><s:radio list="#{1:'男',0:'女'}" name="perSex" value="1" theme="simple"></s:radio> </td>
						</tr>
						<tr>
							<td class="info_tit">电  话：</td>
							<td> 
								<input name="perPhone" type="text" class="info_input" value="<s:property value="per.perPhone"/>" id="btel"/><span class="note4">*</span>
							</td>
						</tr>
						<tr>
							<td class="info_tit">手  机：</td>
							<td>
								<input name="perMobile" type="text" class="info_input" value="<s:property value="per.perMobile"/>" id="btel2"/><span class="note4">*</span>
							</td>
						</tr>
						<tr>
							<td class="info_tit">邮  箱：</td>
							<td>
								<input name="perEmail" type="text" class="info_input" value="<s:property value="per.perEmail"/>" id="email"/><span class="note4"></span>
							</td>
						</tr>
						<tr>
					    <td class="info_tit">学  历：</td>
					    <td><s:select list="#{'1':'小学','2':'初中','3':'高中',4:'大专','5':'本科','6':'研究生','7':'博士'}" name="perDegree" headerKey="" headerValue="请选择" value="per.perDegree" theme="simple" cssStyle="width:155px;"></s:select></td>
					</tr>
					<tr>
					    <td class="info_tit">培训情况：</td>
					    <td><input type="text" name="perTraining" class="info_input"/></td>
					</tr>
					<tr>
					    <td class="info_tit">工作年限：</td>
					    <td><input type="text" name="perWorkingYear" class="info_input"/>年</td>
					</tr>
					<tr>
					    <td class="info_tit">备注：</td>
					    <td><textarea name="note" class="info_input">${per.note}</textarea></td>
					</tr>
					
						<tr>
							<td colspan="2"  class="info_tit" style="text-align:center;height:35px;"><input type="submit" name="btntj" class="input_link" id="btnSubmit" value="提 交"  onclick="return check();"  /> <input type="reset" name="btnset" class="input_link" id="btnset" value="重 置"/> </td>
						</tr>
					
					</table>
				</form>
			</div>
		</div>
	</div>
	<div class="foot">
		<iframe src="<%=basePath%>/foot.html" width="1160" height="89" scrolling="no" frameborder="0" ></iframe>
	</div>
</div>
<s:if test="%{tip!=null}">
	<script>
		alert('${tip}');
	</script>
</s:if>
</body>
</html>
